package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 回贴实体类
 */

@Data
@NoArgsConstructor
public class ReplyBean {


    /**回帖编号*/
    private int replyId;
    /**回帖标题*/
    private String replyName;
    /**回帖内容*/
    private String replyContent;
    /**回帖时间*/
    private LocalDate replyTime = LocalDate.now();
    /**所属主帖*/
    private MainBean mainBean;
    /**所属人*/
    private UserBean userBean;

    public ReplyBean(String replyName, String replyContent) {
        this.replyName = replyName;
        this.replyContent = replyContent;
    }

    @Override
    public String toString() {
        return "ReplyBean{" +
                "replyId=" + replyId +
                ", replyName='" + replyName + '\'' +
                ", replyContent='" + replyContent + '\'' +
                ", replyTime=" + replyTime +
                ", mainBean=" + mainBean +
                '}' + "\n";
    }
}
